/*
 * *
 *  * Created with IntelliJ RustRover.
 *  * Description:
 *  * Copyright Author: ZhenYi
 *  * DateTime: 2024/2/14 下午5:10
 *
 */


use serde::{Deserialize, Serialize};

#[derive(Deserialize,Serialize,Clone)]
pub struct Head{
    ip:String,
    port:String
}

impl Default for Head {
    fn default() -> Self {
        Self{
            ip:String::new(),
            port:String::new(),
        }
    }
}

impl Head {
    pub fn format(&self) ->String{
        format!("{}:{}",self.ip,self.port)
    }
}